package main;

import java.awt.Rectangle;

public class RectangleGenerator {

	/**
	 * Constructor of matrix of rectangle objects (Same concept for matrix generator)
	 * @param size
	 */
	public RectangleGenerator(int size) {
		
		Rectangle[][] rectangles = new Rectangle[size][size];
		for (int i = 0; i < size; i++) {
			for (int j = 0; j < size; j++) {
				rectangles[i][j] = new Rectangle( i*(sizex/size),j*(sizey/size), ((sizex/size)), ((sizey/size)));
				//Simple math for alignment and size
			}
		}
		
		this.rectangles = rectangles;
	}
	
	public Rectangle[][] getRectangles() {
		return rectangles;
	}

	public Rectangle[][] rectangles;
	public static final int sizex = 400;
	public static final int sizey = 400;
	
}
